<div class="modal fade in ip-box" tabindex="-1" role="dialog"	aria-labelledby="myModalLabel" aria-hidden="true" id="newlyAdded">
	<div class="modal-dialog " role="document" style="margin:254px auto;">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
				<h4 class="modal-title" id="myModalLabel">资源类型管理 — 新增</h4>
			</div>
			<div class="modal-body">
				<form name="newlyAddedForm">
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 control-label text-right">名称：</label>
						<div class="col-xs-12 col-sm-9">
							<input type="text" 
								   name="name"
								   class="form-control" 
								   autocomplete="off" 
								   required
								   ng-model="resouceType_name" 
								   >
								<label class="red required">*</label>
							<div class="error" ng-show="newlyAddedForm.name.$dirty && newlyAddedForm.name.$invalid">
								<small class="error" ng-show="newlyAddedForm.name.$error.required">名称不能为空</small>
							</div>
						</div>
					</div>
					<div class="form-group height-auto">
						<label class="col-xs-12 col-sm-3 control-label text-right">英文名称：</label>
						<div class="col-xs-12 col-sm-9">
							<input type="text" 
								   name="enName" 
								   class="form-control" 
								   autocomplete="off" 
								   required
								   ng-model="resouceType_enName" 
								   >
							<label class="red required">*</label>
							<div class="error" ng-show="newlyAddedForm.enName.$dirty && newlyAddedForm.enName.$invalid">
								<small class="error" ng-show="newlyAddedForm.enName.$error.required">英文名称不能为空</small>
							</div>
						</div>
					</div>
					<div class="form-group height-auto">
						<label class="col-xs-12 col-sm-3 control-label text-right">资源明细表：</label>
						<div class="col-xs-12 col-sm-9">
							<input type="text" 
								   name="resTable" 
								   class="form-control" 
								   autocomplete="off" 
								   required
								   ng-model="resouceType_resTable" 
								   >
							<label class="red required">*</label>
							<div class="error" ng-show="newlyAddedForm.resTable.$dirty && newlyAddedForm.resTable.$invalid">
								<small class="error" ng-show="newlyAddedForm.resTable.$error.required">资源明细表不能为空</small>
							</div>
						</div>
					</div>
					<div class="form-group height-auto">
						<label class="col-xs-12 col-sm-3 control-label text-right">可否零售：</label>
						<div class="col-xs-12 col-sm-9">
							<select name="isRetail"
									required 
									ng-model="resouceType_isRetail" 
									>
								<option value="">请选择</option>
								<option value="0">不可零售</option>
								<option value="1">可零售</option>
							</select>
							<div class="error" ng-show="newlyAddedForm.isRetail.$dirty && newlyAddedForm.isRetail.$invalid">
							    <small class="error" ng-show="newlyAddedForm.isRetail.$error.required">请选择可否零售</small>
 							</div>
						</div>
					</div>
					<div class="form-group height-auto">
						<label class="col-xs-12 col-sm-3 control-label text-right">描述：</label>
						<div class="col-xs-12 col-sm-9">
							<textarea rows="5" 
									  type="text" 
									  name="description"
									  class="form-control" 
									  ng-model="resouceType_description"
									  >
                            </textarea>
						</div>
					</div>
				</form>
				<div class="col-sm-12">
					<div class="modal-footer">
						<button type="button" 
								class="btn btn-primary" 
								data-dismiss="modal"
								ng-disabled="newlyAddedForm.$invalid"
								ng-click="submitNewlyAdded()"
								>新增
						</button>
					</div>
				</div>

			</div>
		</div>
	</div>
</div>